package com.gitee.jmash.oidc.oauth2.enums;

/**
 * Oauth2 授权方式.
 *
 * @author CGD
 *
 */
public enum GrantWay {

  code("Authorization Code Grant(授权码授权,安全性高)"),

  implicit("Implicit Grant(前端应用隐式授权,安全性中)"),

  password("Resource Owner Password Credentials Grant(密码授权,安全性低)"),

  client_credentials("Client Credentials Grant(客户端凭证授权,不针对用户)");

  private String displayName;

  private GrantWay(String displayName) {
    this.displayName = displayName;
  }

  public String getDisplayName() {
    return displayName;
  }

}
